package com.training1.core.entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.training1.core.common.entity.DataEntity;
@Alias("customer")
public class CustomerEntity extends DataEntity{
	/**
	 * 
	 */
	private static final long serialVersionUID = 939859521754807255L;

	@Pattern(regexp="\\d{11}",message="{module.customer.cellphone.error}")
	@NotNull(message="{notnull}")
	private String customerPhone;
	
	@Length(min=1,max=50,message="{module.customer.name.error}")
	@NotNull(message="{notnull}")
	private String customerName;
	
	private String  cardid;
	
	private String registerAdd;
	
	private String perAdd;
	
	private String emerContact;
	
	private String origin;
	
	private String marriage;
	
	private String photo;
	
	private String sex;
	private Double serFee;
	private String companyName;
	private String companyAdd;
	private String companyPhone;
	private String companyEmerContact;
	private String companyType;
	private String industry;
	private Double income;
	private String perCre;
	private String bankRec;
	private String rela1App;
	private String rela1Name;
	private String rela1Company;
	private String rela1Phone;
	private String rela2App;
	private String rela2Name;
	private String rela2Company;
	private String rela2Phone;
	private String estate1;
	private String estate2;
	private String estate3;
	private String coupleCardid;
	private String coupleName;
	private String couplePhone;
	private String coupleCompany;
	private Integer underCompany;
	private String memo;
	private String isValid;
	
	private String validDate;
	private Integer approvalCyc;
	private BigDecimal approvalAmount;
	private BigDecimal forceAmount;
	public String getCustomerPhone() {
		return customerPhone;
	}
	public void setCustomerPhone(String customerPhone) {
		this.customerPhone = customerPhone;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCardid() {
		return cardid;
	}
	public void setCardid(String cardid) {
		this.cardid = cardid;
	}
	public String getRegisterAdd() {
		return registerAdd;
	}
	public void setRegisterAdd(String registerAdd) {
		this.registerAdd = registerAdd;
	}
	public String getPerAdd() {
		return perAdd;
	}
	public void setPerAdd(String perAdd) {
		this.perAdd = perAdd;
	}
	public String getEmerContact() {
		return emerContact;
	}
	public void setEmerContact(String emerContact) {
		this.emerContact = emerContact;
	}
	public String getOrigin() {
		return origin;
	}
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	public String getMarriage() {
		return marriage;
	}
	public void setMarriage(String marriage) {
		this.marriage = marriage;
	}
	public String getPhoto() {
		return photo;
	}
	public void setPhoto(String photo) {
		this.photo = photo;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Double getSerFee() {
		return serFee;
	}
	public void setSerFee(Double serFee) {
		this.serFee = serFee;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getCompanyAdd() {
		return companyAdd;
	}
	public void setCompanyAdd(String companyAdd) {
		this.companyAdd = companyAdd;
	}
	public String getCompanyPhone() {
		return companyPhone;
	}
	public void setCompanyPhone(String companyPhone) {
		this.companyPhone = companyPhone;
	}
	public String getCompanyEmerContact() {
		return companyEmerContact;
	}
	public void setCompanyEmerContact(String companyEmerContact) {
		this.companyEmerContact = companyEmerContact;
	}
	public String getCompanyType() {
		return companyType;
	}
	public void setCompanyType(String companyType) {
		this.companyType = companyType;
	}
	public String getIndustry() {
		return industry;
	}
	public void setIndustry(String industry) {
		this.industry = industry;
	}
	public Double getIncome() {
		return income;
	}
	public void setIncome(Double income) {
		this.income = income;
	}
	public String getPerCre() {
		return perCre;
	}
	public void setPerCre(String perCre) {
		this.perCre = perCre;
	}
	public String getBankRec() {
		return bankRec;
	}
	public void setBankRec(String bankRec) {
		this.bankRec = bankRec;
	}
	public String getRela1App() {
		return rela1App;
	}
	public void setRela1App(String rela1App) {
		this.rela1App = rela1App;
	}
	public String getRela1Name() {
		return rela1Name;
	}
	public void setRela1Name(String rela1Name) {
		this.rela1Name = rela1Name;
	}
	public String getRela1Company() {
		return rela1Company;
	}
	public void setRela1Company(String rela1Company) {
		this.rela1Company = rela1Company;
	}
	public String getRela1Phone() {
		return rela1Phone;
	}
	public void setRela1Phone(String rela1Phone) {
		this.rela1Phone = rela1Phone;
	}
	public String getRela2App() {
		return rela2App;
	}
	public void setRela2App(String rela2App) {
		this.rela2App = rela2App;
	}
	public String getRela2Name() {
		return rela2Name;
	}
	public void setRela2Name(String rela2Name) {
		this.rela2Name = rela2Name;
	}
	public String getRela2Company() {
		return rela2Company;
	}
	public void setRela2Company(String rela2Company) {
		this.rela2Company = rela2Company;
	}
	public String getRela2Phone() {
		return rela2Phone;
	}
	public void setRela2Phone(String rela2Phone) {
		this.rela2Phone = rela2Phone;
	}
	public String getEstate1() {
		return estate1;
	}
	public void setEstate1(String estate1) {
		this.estate1 = estate1;
	}
	public String getEstate2() {
		return estate2;
	}
	public void setEstate2(String estate2) {
		this.estate2 = estate2;
	}
	public String getEstate3() {
		return estate3;
	}
	public void setEstate3(String estate3) {
		this.estate3 = estate3;
	}
	public String getCoupleCardid() {
		return coupleCardid;
	}
	public void setCoupleCardid(String coupleCardid) {
		this.coupleCardid = coupleCardid;
	}
	public String getCoupleName() {
		return coupleName;
	}
	public void setCoupleName(String coupleName) {
		this.coupleName = coupleName;
	}
	public String getCouplePhone() {
		return couplePhone;
	}
	public void setCouplePhone(String couplePhone) {
		this.couplePhone = couplePhone;
	}
	public String getCoupleCompany() {
		return coupleCompany;
	}
	public void setCoupleCompany(String coupleCompany) {
		this.coupleCompany = coupleCompany;
	}
	public Integer getUnderCompany() {
		return underCompany;
	}
	public void setUnderCompany(Integer underCompany) {
		this.underCompany = underCompany;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getIsValid() {
		return isValid;
	}
	public void setIsValid(String isValid) {
		this.isValid = isValid;
	}
	public Integer getApprovalCyc() {
		return approvalCyc;
	}
	public void setApprovalCyc(Integer approvalCyc) {
		this.approvalCyc = approvalCyc;
	}
	public BigDecimal getApprovalAmount() {
		return approvalAmount;
	}
	public void setApprovalAmount(BigDecimal approvalAmount) {
		this.approvalAmount = approvalAmount;
	}
	public String getValidDate() {
		return validDate;
	}
	public void setValidDate(String validDate) {
		this.validDate = validDate;
	}
	public BigDecimal getForceAmount() {
		return forceAmount;
	}
	public void setForceAmount(BigDecimal forceAmount) {
		this.forceAmount = forceAmount;
	}
	
}
